<script type="text/javascript" src="application/modules/Ialbum/externals/scripts/lightface/LightFace.js"></script>
<script type="text/javascript" src="application/modules/Ialbum/externals/scripts/lightface/LightFace.Image.js"></script>
<?php if($this->isLoad):?>
<script type="text/javascript" src="externals/moolasso/Lasso.js"></script>
<script type="text/javascript" src="externals/moolasso/Lasso.Crop.js"></script>
<script type="text/javascript" src="externals/autocompleter/Observer.js"></script>
<script type="text/javascript" src="externals/autocompleter/Autocompleter.js"></script>
<script type="text/javascript" src="externals/autocompleter/Autocompleter.Local.js"></script>
<script type="text/javascript" src="externals/autocompleter/Autocompleter.Request.js"></script>
<script type="text/javascript" src="externals/tagger/tagger.js"></script>
<script type="text/javascript" src="application/modules/Ialbum/externals/scripts/ThinkleScroller.js"></script>
<?php endif;?>
<script type="text/javascript" src="application/modules/Ialbum/externals/scripts/core.js"></script>
<script type="text/javascript" src="application/modules/Ialbum/externals/scripts/transform.js"></script>
<script type="text/javascript">
var locationUrl = window.location.href;
var isRequestActive = 0;
var text_close = '<?php echo $this->translate('Press Esc to close')?>';
en4.core.runonce.add(function() {

	$$('a.ialbum_photo_lightbox').removeEvent('click').addEvent('click', function(e){
		light = new LightFaceIalbum({
			title: '',
			fadeDuration: 100,
			keys: {
				esc: function() {
					this.close();
				}
			}
		});	
		light.load($(this).get('href'), '0');
		return false;
	});	
});
function boxNextPhoto(url){
		load = light.load(url, '1');
}	
</script>
